const Storage = {
  key: 'memoryBlogUser',
  set (key, userInfo) {
    window.localStorage[key] = JSON.stringify(userInfo)
  },
  get (key) {
    return window.localStorage[key] && JSON.parse(window.localStorage[key])
  }
}

export default Storage
